{template "content","header"}
<?php
			$uid = get_memberinfo_buyusername($username,'userid');
			$memberinfoimg1=get_memberavatar($_userid);
			$show = ($_username == $username) ? 1 : 0;
			$friend_model = pc_base::load_model('space_friend_model');
			 $info = $friend_model->get_one(array('fname'=>$username,'username'=>$_username),'username');
		 	$guanzu = $info ? 1 : 0;
			
?>
<div class="content">
	<div class="food_content_left">
		<div class="food_content">
			<div class="location2">{catpos($catid)}{$title} > 内容</div>
			<div class="food_content_box">
				<div class="food_content_box_content">{$content}</div>
				<div id="bdshare" class="bdshare_b"><img src="{IMG_PATH}type-button-1.jpg" />
                <a class="shareCount"></a>
            	</div>
        <script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=427792" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
        </script>
			
			</div>
		</div>
		{if $allow_comment && module_exists('comment')}
      <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
        {/if}
	</div>
	<div class="food_content_right">
		<div class="img">
			<div class="info">
				<div class="pic"><a href="{member_url($username)}" target="_blank"><img src="{$memberinfoimg1}"  align="top" height="46" width="46" onerror="this.src='<?php echo CSS_PATH?>zouzou/images/22.png'" /></a></div>
				<div class="text"><p><a href="{member_url($username)}" target="_blank">{$username}</a> <span id="guanzhu">{if $guanzu}已关注！{else}<a href="#"  onClick="fensi('{$username}','{$uid}',{$show},1);return false;"><img src="{CSS_PATH}zouzou/images/icon01.png" alt="关注" /></a>{/if}</span></p>
				<p>发布于{$inputtime}</p>
				</div>
			</div>
			<div class="clear"></div>
			<div class="img_list">
				<h1>相关图片</h1>
				<ul>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				</ul>
			</div>
		</div>
		<div class="img2">
			<div class="img_list">
				<h1>相关图片</h1>
				<ul>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
					<li><a href="#"><img src="images/img_07.jpg" alt="#" /></a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("{APP_PATH}index.php?m=content&c=index&a=json_list&type=keyword&modelid={$modelid}&id={$id}&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  $('#Article .content img').LoadImage(true, 660, 660,'{IMG_PATH}s_nopic.gif');  
  $('body').addClass("body");  
})
//-->
</script>
<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}&hits=1"></script>
{template "content","footer"}